package com.wis.controller;

import com.wis.service.UserService;
import com.wis.util.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user/user")
public class UserController {
    @Autowired
    private UserService userService;
    //登录接口
    @GetMapping(value = "/login")
    public CommonResult login(@RequestParam(value = "email") String email, @RequestParam(value = "password") String password) {
        return userService.selectUser(email,  password);
    }
}
